/*
 * Created on Feb 24, 2005
 */
import java.awt.*;
import java.awt.event.*;
/**
 * @author Jesse Phillips
 */
public class Blackboard extends Frame {
	private Graphics myGraphics;
	private Frame myBlackboard;
	private Mousing myMouse;
	
	public static void main(String[]args){
		Frame myBlackboard = new Blackboard();
	}
	
	public Blackboard() {
		setTitle("Resizable Blackboard!");
		setBackground(Color.black);
		Tracker myTrack = new Tracker();
		setSize(myTrack.getWidth(), myTrack.getHeight());
		setVisible(true);
		
		myGraphics = getGraphics();
		
		Mousing myMouse = new Mousing(myGraphics, myTrack);
		MenuSystem myMenu = new MenuSystem(this, myMouse);
		this.setMenuBar(myMenu.creatMenuBar());
		myMouse.redraw();
		
		addComponentListener(myTrack);
		addMouseListener(myMouse);
		addMouseMotionListener(myMouse);
		
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
	}
}
